Skip to content

Accept Homebrew revision suffix in LLVM version parsing - #557

Merged
nikobockerman merged 1 commit into
mainfrom
fix/llvm-version-revision-suffix
Jun 9, 2026
Merged

Accept Homebrew revision suffix in LLVM version parsing#557
nikobockerman merged 1 commit into
mainfrom
fix/llvm-version-revision-suffix

Conversation

@nikobockerman

Copy link
Copy Markdown
Owner

Homebrew published llvm 22.1.7_1, where the trailing _1 is a bottle revision (a rebuild of the same upstream version). The version validation regex only accepted bare X.Y.Z, so it rejected the _N suffix and failed the "Setup homebrew packages" step in every C++ job.

Widen the regex to accept an optional _N revision suffix. The parsed value feeds compiler.abi_extra in the Conan sanitizers profile, so keeping the suffix is correct: a Homebrew rebuild should invalidate the Conan ABI discriminator and trigger a rebuild.

Homebrew published llvm 22.1.7_1, where the trailing _1 is a bottle
revision (a rebuild of the same upstream version). The version
validation regex only accepted bare X.Y.Z, so it rejected the _N
suffix and failed the "Setup homebrew packages" step in every C++ job.

Widen the regex to accept an optional _N revision suffix. The parsed
value feeds compiler.abi_extra in the Conan sanitizers profile, so
keeping the suffix is correct: a Homebrew rebuild should invalidate the
Conan ABI discriminator and trigger a rebuild.
Copilot AI review requested due to automatic review settings June 9, 2026 03:40

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the Homebrew LLVM version parsing in the CI setup action to handle Homebrew “bottle revision” suffixes (e.g., 22.1.7_1), preventing C++ jobs from failing during the “Setup homebrew packages” step while preserving the suffix for downstream ABI discrimination.

Changes:

  • Expand the LLVM version validation regex to accept an optional _<revision> suffix (e.g., _1).
  • Keep the full version string (including revision) as the parsed value for use in subsequent CI steps.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@nikobockerman
nikobockerman merged commit 8914f9f into main Jun 9, 2026
53 checks passed
@nikobockerman
nikobockerman deleted the fix/llvm-version-revision-suffix branch June 9, 2026 03:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants